#if !defined(AFX_STDAFX_H__386C2EC6_F6AF_11D3_915E_A6DFC88FAF38__INCLUDED_)
#define AFX_STDAFX_H__386C2EC6_F6AF_11D3_915E_A6DFC88FAF38__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif

//#pragma warning(disable: 4146 4786 4244 4101 4010 4305 4552 4700 4715 4800)
#pragma warning(disable: 4146)

#ifdef _DEBUG
#define _DEBUG_WAS_DEFINED
#undef _DEBUG
#define NDEBUG
#endif

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions

#ifndef _AFX_NO_OLE_SUPPORT
#include <afxole.h>         // MFC OLE classes
#include <afxodlgs.h>       // MFC OLE dialog classes
#include <afxdisp.h>        // MFC Automation classes
#endif // _AFX_NO_OLE_SUPPORT

#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h>          // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT

#include <comdef.h>
#include <objbase.h>

#include "unicode.h"        //Unicode-compatible

#include "gl/gl.h"
#include "gl/glu.h"
#include "gl/glaux.h"
#include "OLEDBERR.H"

#import "C:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" no_namespace \
rename("EOF","adoEOF")\
rename("EditModeEnum","adoEditModeEnum")\
rename("LockTypeEnum","adoLockTypeEnum")\
rename("FieldAttributeEnum","adoFieldAttributeEnum")\
rename("DataTypeEnum","adoDataTypeEnum")\
rename("ParameterDirectionEnum","adoParameterDirectionEnum")\
rename("RecordStatusEnum","adoRecordStatusEnum")

//#ifdef _ARX2000
//#import "tableList.dll" no_namespace 
//#else
//#import "tableList14.dll" no_namespace 
//#endif
//#import "chart.dll" no_namespace

#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h>         // MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT

#include <afxdtctl.h>       // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>         // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

// AutoCAD MFC Extensions:
#ifdef _ARX2000
#include "adui.h"
#include "acui.h"
#include "acuiComboBox.h"
#include "acuiDialog.h"
#endif

#ifdef _DEBUG_WAS_DEFINED
#undef NDEBUG
#define _DEBUG
#undef _DEBUG_WAS_DEFINED
#endif

#define PI 3.1415927
#include "resource.h"
#include "uelisp\glvar.h"
#include "AcadStdafx.h"
#include "ver.h"

#ifndef _ARX2007

#ifdef _ARX2004
#define CueTable   CueTable2004
#define Ctable     CueTable2004
#else

#ifdef _ARX2000
#define CueTable   CueTable2000
#define Ctable     CueTable2000
#else
  
#define CueTable   CueTable0014
#define Ctable     CueTable0014
#endif
#endif


#endif

//#define CONNECTSTRING "driver=Microsoft Access Driver (*.mdb);dbq="
#define CONNECTSTRING _T("Provider=Microsoft.JET.OLEDB.4.0;Data source = ")


#ifdef ASSERT
#undef ASSERT
#define ASSERT assert
#endif

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

extern HINSTANCE g_ARXInstance;
extern HINSTANCE g_CADInstance;
#endif // !defined(AFX_STDAFX_H__386C2EC6_F6AF_11D3_915E_A6DFC88FAF38__INCLUDED_)

